package com.define.ssh.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * TerminalparamType entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "terminalparam_type")
public class TerminalparamType implements java.io.Serializable {

	// Fields

	private Integer id;
	private String terminaltype;//终端类型 1.接入模块 2.核心模块 3.接入模块
	private Integer paramid; //参数ID
	private String paramname;//参数名称
	private String description;//参数描述
	private Date updateTime;//更新时间

	// Constructors

	/** default constructor */
	public TerminalparamType() {
	}

	/** minimal constructor */
	public TerminalparamType(Integer id, String terminaltype, Integer paramid,
			String paramname, Date updateTime) {
		this.id = id;
		this.terminaltype = terminaltype;
		this.paramid = paramid;
		this.paramname = paramname;
		this.updateTime = updateTime;
	}

	/** full constructor */
	public TerminalparamType(Integer id, String terminaltype, Integer paramid,
			String paramname, String description, Date updateTime) {
		this.id = id;
		this.terminaltype = terminaltype;
		this.paramid = paramid;
		this.paramname = paramname;
		this.description = description;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GeneratedValue(generator = "generator")
	@Id
	@GenericGenerator(name = "generator", strategy = "identity")
	@Column(name = "id", unique = true, nullable = false, precision = 20, scale = 0)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "terminaltype", unique = false, nullable = false, insertable = true, updatable = true, length = 1)
	public String getTerminaltype() {
		return this.terminaltype;
	}

	public void setTerminaltype(String terminaltype) {
		this.terminaltype = terminaltype;
	}

	@Column(name = "paramid", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getParamid() {
		return this.paramid;
	}

	public void setParamid(Integer paramid) {
		this.paramid = paramid;
	}

	@Column(name = "paramname", unique = false, nullable = false, insertable = true, updatable = true, length = 50)
	public String getParamname() {
		return this.paramname;
	}

	public void setParamname(String paramname) {
		this.paramname = paramname;
	}

	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}